package com.school.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.school.entity.HljtOnduty;
import com.school.entity.HljtStudent;

@Repository
public interface HljtStudentDao {
	/**
	 * 通过学生id查找对应学生信息
	 * @param studentId
	 * @param classId
	 * @return
	 */
	public HljtStudent findStudent(@Param(value="id")Integer id);
	/**
	 * 通过学生id查找对应学生信息
	 * @param studentId
	 * @param classId
	 * @return
	 */
	public HljtStudent selectStudent(@Param(value="classid")Integer classid,@Param(value="studentname")String studentName);
	/**
	 * 通过学生名字模糊查找
	 * @param studentId
	 * @param classId
	 * @return
	 */
	public List<HljtStudent> findStudentName(@Param(value="name")String name,@Param(value="pageSize")Integer pageSize,@Param(value="pageIndex")Integer  pageIndex);
	
	/***
	 * 查询学生作品，荣誉等
	 * @param hljtStudent
	 * @return
	 */
	List<HljtStudent> studentWorks(HljtStudent hljtStudent);
	
	/***
	 * 查询学生值日
	 * @param hljtStudent
	 * @return
	 */
	List<HljtOnduty> studentDuty(HljtOnduty hljtOnduty);

	/***
	 * 根据学生卡号查询学生信息
	 * @param hljtStudent
	 * @return
	 */
	HljtStudent studentByIccard(HljtStudent hljtStudent);

	/***
	 * 统计学生数量
	 * @param hljtStudent
	 * @return
	 */
	Integer selectStudentByClassIdCount(HljtStudent hljtStudent);
	
	
	/***
	 * 添加学生信息
	 * @param hljtStudent
	 * @return
	 */
	Integer addStudent(List<HljtStudent> list);
	
	/***
	 * 根据班级查询学生信息
	 * @param hljtStudent
	 * @return
	 */
	List<HljtStudent> selectStudentByClassId(HljtStudent hljtStudent);
	
	
	/***
	 * 修改为该学生不可见
	 * @param hljtStudent
	 * @return
	 */
	Integer updateStudentByClassId(List<HljtStudent> list);
	/***
	 * 修改为该学生信息
	 * @param hljtStudent
	 * @return
	 */
	Integer updateStudentInfoByClassId(HljtStudent hljtStudent);
	
	/**
	 * 查询班级之星数量
	 * @return
	 */
	List<HljtStudent> findStudentAll();
	
	/**
	 * 学生信息修改
	 * @param hljtStudent
	 * @return
	 */
	Integer updateStudents(HljtStudent hljtStudent);
} 

